""" 
@coding  : utf-8
@Time    : 2023/4/20 16:25
@Author  : Rumou
@File    : 整数和统计.py
@Description: 
"""
my_list = [1, 2, 3, "aaa", 5.0, 6, "bbb"]
total = 0
for element in my_list:
    if isinstance(element, int):
        total += element
print("整数类型的数值和为:", total)
